const express = require("express");
const { sendMail } = require("../helpers/mail");
const router = express.Router();

router.get("/", function (req, res) {
  sendMail().then(() => {
    const msg = "请注意查收";
    res.json({ code: 0, msg });
  });
});

module.exports = router;
